package model;

import java.util.ArrayList;
import java.util.List;

import common.DataManager;
import common.GridCoordinate;

/**
 * @author Colin
 * 
 * Asteroids are types of Manual weapons that due damage
 * to all zombosaurs on the map.
 *
 */
public class Asteroid extends ManualWeapon{
	
	private static final int INITIAL_DAMAGE = 49;
	private static final int COST = 3000;
	private static final int INITIAL_RANGE_INT = 15;
	private static final int INITIAL_SPEED = 15;
	
	private GridCoordinate position;
	
	//Asteroid without position
	public Asteroid(){
		super("Asteroid", DataManager.ASTEROID, DataManager.ASTEROID_AMMO, COST, INITIAL_DAMAGE, INITIAL_SPEED, INITIAL_RANGE_INT);
		
	}
	
	//Asteroid with position
	public Asteroid(GridCoordinate position){
		super("Asteroid", DataManager.ASTEROID, DataManager.ASTEROID_AMMO, COST, position, INITIAL_DAMAGE, INITIAL_SPEED, INITIAL_RANGE_INT);
		
		this.position = position;
	}

	@Override
	public void createRange() {
		List<GridCoordinate> r = new ArrayList<GridCoordinate>();
		for( int i = 0; i < 15; ++i ){
			for( int j = 0; j < 10; ++j){
				r.add( new GridCoordinate( i, j));
			}
		}
		setRange(r);
	}

	@Override
	public String getDescription() {
		return "The Asteroid does a huge amount of damage to all the zombosaurs on the map";
	}

}
